{extend name="index/index" /}

{block name="main"}

<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        RBAC 列表
    </div>
    <ol class="am-breadcrumb">
        <li><a href="{:url('admin/index/index')}" class="am-icon-home">首页</a></li>
        <li class="am-active">修改</li>
    </ol>
    <div class="tpl-portlet-components" style="width: 500px;">
        <div class="portlet-title">
            <div class="caption font-green bold">
                <span class="am-icon-code"></span> 修改职位
            </div>
            <div class="tpl-portlet-input tpl-fz-ml"></div>
        </div>
        <div class="tpl-block">
            <form method="post" action="{:url('admin/role/update',['id'=>$data['id']])}">
                <p>职位名：<input type="text" value="{$data.name}" name="name"></p>
                <p>管理事务：<input type="text" value="{$data.remark}" name="remark"></p>
                <p>状态：
                    <select name="status">
                        <option value="0" {$data['status'] == 0 ? 'selected' : ''}>开启</option>
                        <option value="1" {$data['status'] == 1 ? 'selected' : ''}>禁用</option>
                    </select>

                </p>
                <button class="am-btn am-btn-info am-btn-xs am-text-secondary">提交</button>
            </form>
        </div>
    </div>

{/block}


